import { lazy } from "react";

const RouterList = [
  {
    path: "/home",
    component: lazy(() => import("../page/Home")),
    children: [
      {
        path: "/home/main",
        name: "面试大题",
        component: lazy(() => import("../page/Mian/index")),
      },
      {
        path: "/home/lian",
        name: "笔试练习",
        component: lazy(() => import("../page/Lian/index")),
      },
      {
        path: "/home/car",
        name: "购物车",
        component: lazy(() => import("../page/Car")),
      },
      {
        path: "/home/gou",
        name: "购物车内",
        component: lazy(() => import("../page/Gou/Gou")),
      },
      {
        from: "/home",
        to: "/home/main",
      },
    ],
  },
  {
    path: "/detail",
    name: "详情",
    component: lazy(() => import("../page/Detail")),
  },
  {
    from: "/",
    to: "/home",
  },
];

export default RouterList;
